import matplotlib.pyplot as plt
import numpy as np
import matplotlib

def graph(x,y):
 plt.figure(figsize=(6,9))
 matplotlib.rcParams['font.sans-serif']=['SimHei']
 matplotlib.rcParams['axes.unicode_minus']=False
 sizes=y
 patches,text1,text2=plt.pie(
                sizes,
                labels=x,
                autopct='%1.1f%%',
                shadow=False,
                startangle=90)
 plt.axis('equal')
 plt.show()
